home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / FILER / PACK.ZIP / !PackDisc / !Help < prev    next >
Text File  |  1997-06-10  |  8KB  |  177 lines

  1. PackDisc 0.05 Desktop version 0.01
  2. ----------------------------------
  3. Wimp from end added 10 June 1997 by the X-Man
  4. Not correct yet but pretty good - need some of the comments correct displayed in final info window.
  5.  
  6. Help file for PackDisc 0.05
  7. ===========================
  8.  
  9. Overview
  10. --------
  11.  
  12. This program will increase the free space on any FileCore based filing
  13. system. This free space which is created comes from the wasted space in
  14. shared fragments. !PackDisc rearranges which files share fragments with each
  15. other in such a way as to minimise the remaining wasted space.
  16.  
  17. PackDisc is ideal on directories which have constant contents and several
  18. small files, for example application directories, as the small files can be
  19. rearranged more effectively and the space saved should remain saved.
  20. It may also be useful for PD libraries or magazine discs or anyone else who
  21. wants to use every last sector on a floppy - it can usually save at least a
  22. couple of KB from a typical floppy. I saved 11K on a copy of the RISC OS 3
  23. App1 disc. On my whole hard drive I saved about 10MB.
  24.  
  25. The whole of the re-arrangement is done using high-level filing system calls
  26. to minimise the risk of corrupting discs. However, the FileCore bug which
  27. can corrupt nearly-full discs *could* rear its ugly head. I have not had any
  28. problems with the current version. An early development version *did* cause
  29. a corruption of a couple of very large files but these are handled
  30. differently now so the corruption should not occur.
  31.  
  32.  
  33. Usage
  34. -----
  35.  
  36. Before running this program on a disc you should make sure it has enough
  37. free space on it for PackDisc to operate. If necessary move a large file off
  38. the disc and replace it afterwards. I would recommend having at least 1MB
  39. of free space on a hard drive and about 30K on a floppy. It is probably
  40. possible to do it with less.
  41.  
  42. If you use FSLock, you will either need to edit the !RunImage and change the
  43. names of the temporary directories «Scratch» and «STORE» to a writable
  44. location on the disc or disable it while PackDisc is running.
  45.  
  46. Either double click on the icon to run it single tasking, or shift-drag it
  47. to a TaskWindow.
  48.  
  49. Enter the filename of the directory you want to optimise. This *must* be a
  50. full path including the FS and disc name/drive number, and must be on a
  51. filecore based filing system. You should not attempt to optimise any of the
  52. parent directories of the temp directories, or directories in image files.
  53.  
  54. You may either optimise just the directory stated, or recurse into all its
  55. subdirectories as well.
  56.  
  57. The Verbosity level is set near the start of the program. This will determine
  58. how much output is given.
  59.  
  60. Level 0  Gives only the space saved statistics for the whole run of the program
  61.          when it finishes.
  62. Level 1  Also gives you the space saved statistics for each directory.
  63. Level 2  Tells you what overall operation it is trying to acheive at each step.
  64. Level 3  Tells you as it moves each file and gives a breakdown of the groups.
  65. Level 4  Gives some information on how the grouping is being derived.
  66.  
  67. After a while the program should terminate, telling you how much space the
  68. files take (rounded to sectors), how much wasted space was recovered as free
  69. space, and how much wasted space remains. This often shows that about a third
  70. of the original wasted space was recovered, but depends very much on how many
  71. relatively small files there are in the directories optimised.
  72.  
  73. There is no point running it more than once on the same directory as no further
  74. space can be saved (at least not with this program)
  75.  
  76. IMPORTANT: do not run *ANY* other program which could possibly write to the
  77. disc and alter the amount of free space at the same time as PackDisc. At best
  78. it will cause PackDisc to report the space saved incorrectly, but it will
  79. probably make it bomb out with an error.
  80.  
  81. Utilities such as LongFiles or SymLinks will cause problems, so should be
  82. disabled before running - I would recommend running on a cleanly restarted
  83. machine without running the boot sequence (hold down <shift> while
  84. restarting).  PackDisc will complain if it comes across a filename of more
  85. than 10 characters to try to prevent some of these problems.
  86.  
  87. If an error does occur, don't worry, none of your files will be lost. Any
  88. files or directories which appear to be missing are in PackDisc's store
  89. directory. This is $.«STORE» on the disc you are optimising unless you have
  90. amended the program to get round FSLock. PackDisc will tell you which
  91. directory the contents of the store should be moved to when it exits.
  92.  
  93. During the course of its normal operation, PackDisc will create several
  94. directories which fsck describes as "Directories bigger than the minimum
  95. size". This is nothing to worry about - it is allowing more files to share
  96. the same fragment with the directory.
  97.  
  98. Another way that you can create more space on a hard disc is to reduce its
  99. size. If you have a disc formatted to a value between about 500MB and 512MB
  100. or so, and the LFAU is 2K, reducing it to just less than 500MB so that the
  101. LFAU is only 1K and putting all the files back on will probably halve the
  102. wasted space. I had over 40MB of wasted space on my disc at 511.8M,
  103. reformatting it to about 499.5M reduced this to about 20M representing an
  104. overall saving of nearly 10M. There is another boundary size for the .5K to
  105. 1K LFAU transition but I don't know what this is.
  106.  
  107.  
  108. DISCLAIMER
  109. ----------
  110.  
  111. While every effort has been taken to ensure that files do not get lost or
  112. corrupted, I WILL NOT BE HELD RESPONSIBLE for any loss that occurs as a
  113. direct or indirect result of using this program. It is up to you to make sure
  114. any important data is adequately backed up, and irrespomsible not to do so.
  115. [I guess that makes *me* irresponsible... oh well 8-]
  116.  
  117. Having said that, I would like to know if there is a problem with the
  118. program, especially if you can see where it needs fixing.
  119.  
  120.  
  121. Shortcomings of this version
  122. ----------------------------
  123.  
  124.   - Single tasking (although it can be run in a taskwindow). Options
  125.     (ie the display output level and names of temp directories) are changed
  126.     by editing a line in the program code.
  127.   - Uses far too many file operations. This makes it rather slow. A version
  128.     using lower level operations would be able to go a lot faster.
  129.   - Will not work if any other program is accessing the disc at the same time
  130.     (or rather writing to it).
  131.   - Does not cope gracefully with errors. The user must replace files which
  132.     are stuck in its temp directory and delete any files in its scratch area.
  133.     Having said that, error do not occur in my experience unless another
  134.     program accesses the disc at the same time or there was too little free
  135.     disc space.
  136.   - Cannot check potential savings without first doing it. This makes for
  137.     lots of tedious copying which may not free any space.
  138.   - Can cause the free space map to become very fragmented during the course
  139.     of normal operation. This can be partially alleviated by a *Compact.
  140.   - Is slowed down considerably by a very fragmented free space map. This
  141.     and the one above do not work together very well...
  142.   - The optimisation algorithm is not perfect and sometimes gives
  143.     sub-optimal arrangements. Indeed I have seen negative savings
  144.     occasionally.
  145.   - Has not yet been tested on the new FileCore, although there is no reason
  146.     why it shouldn't work.
  147.  
  148. If you have any problems mail me (although the Email address is only valid
  149. until the end of the month)
  150.  
  151.  
  152. The Author
  153. ----------
  154.  
  155. PackDisc was written by Steve Lee. If you would like to receive an updated
  156. version after I have made it MultiTask, send a disc and an SAE to the address
  157. below - I don't know if I'll be able to get net access after I leave uni.
  158.  
  159. If you fancy sending any money too I'm sure I'd love it 8-)
  160. Might even encourage me to redo it with less kludges and a better
  161. algorithm...
  162.  
  163. My home address is:
  164.  
  165. Steve Lee
  166. 114 Cherington Rd.
  167. Selly Park
  168. Birmingham
  169. B29 7SR
  170. England
  171.  
  172. Until the end of June 96:
  173.  
  174. my Email address is sml1007@cam.ac.uk
  175. website at http://sml1007.robinson.cam.ac.uk/~sml1007/
  176.  
  177. (I guess you'll have to be quick to use either of these though :-)